Skip to content

Perf: optimize Tablet write with columnar string storage and lazy DeviceID construction (~10x throughput)#748

Merged
ColinLeeo merged 6 commits intodevelopfrom
tablet_refine
Mar 31, 2026
Merged

Perf: optimize Tablet write with columnar string storage and lazy DeviceID construction (~10x throughput)#748
ColinLeeo merged 6 commits intodevelopfrom
tablet_refine

Conversation

@ColinLeeo
Copy link
Copy Markdown
Contributor

@ColinLeeo ColinLeeo commented Mar 19, 2026

Write 200 x 50000 rows: 15039 ms
Throughput: 664938 rows/s

截屏2026-03-20 00 47 02

Write 200 x 50000 rows: 1578 ms
Throughput: 6337140 rows/s

截屏2026-03-20 00 51 04 [collapsed.zip](https://github.com/user-attachments/files/26122101/collapsed.zip)

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Mar 19, 2026

Codecov Report

❌ Patch coverage is 74.09639% with 43 lines in your changes missing coverage. Please review.
✅ Project coverage is 62.70%. Comparing base (f621373) to head (0aa85c4).

Files with missing lines Patch % Lines
cpp/src/cwrapper/arrow_c.cc 62.50% 10 Missing and 8 partials ⚠️
cpp/src/common/tablet.cc 81.96% 2 Missing and 9 partials ⚠️
cpp/src/writer/tsfile_writer.cc 59.25% 8 Missing and 3 partials ⚠️
cpp/src/common/tablet.h 90.00% 0 Missing and 3 partials ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #748      +/-   ##
===========================================
+ Coverage    62.51%   62.70%   +0.18%     
===========================================
  Files          705      705              
  Lines        41988    42118     +130     
  Branches      6166     6204      +38     
===========================================
+ Hits         26249    26410     +161     
+ Misses       14844    14773      -71     
- Partials       895      935      +40     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ColinLeeo ColinLeeo changed the title refine tabet writing. Perf: optimize Tablet write with columnar string storage and lazy DeviceID construction (~10x throughput) Mar 20, 2026
@hongzhi-gao
Copy link
Copy Markdown
Contributor

LGTM

Comment on lines +158 to +160
value_matrix_[c].string_col->destroy();
value_matrix_[c].string_col->~StringColumn();
common::mem_free(value_matrix_[c].string_col);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is a bit weird to call both destroy and destruction.
Why is destory not included in destruction?

@ColinLeeo ColinLeeo merged commit 75e0664 into develop Mar 31, 2026
18 of 19 checks passed
@jt2594838 jt2594838 deleted the tablet_refine branch April 1, 2026 01:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants